﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>


<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <title>Index</title>
</head>
<body>
    <div>
         <table>
            <thead>
                <tr>
                      <th scope="col">
                        Id
                    </th>
                    <th scope="col" >
                        Title
                    </th>
                    <th scope="col" >
                        Content
                    </th>
                    <th scope="col" >
                        CategoryId
                    </th>
                    <th scope="col" >
                        CreateTime
                    </th>
                     <th scope="col" >
                        UpdateTime
                    </th>
                     <th scope="col" >
                        Views
                    </th>
                     <th scope="col" >
                        Username
                    </th>
                     <th scope="col" >
                        Image
                    </th>

                </tr>
            </thead>
            <% foreach (var item in (ViewData["ListQuestion"] as List<Project_1.Models.ViewListModel>))
               { %>
            <tbody>
                <tr>
                    <td>
                        <%=item.Id %>
                    </td>
                     <td>
                        <%=item.Title %>
                    </td>
                    <td>
                        <%=item.Content%>
                    </td>
                    <td>
                        <%= item.CategoryID %>
                    </td>
                    <td>
                        <%= item.CreateTime %>
                    </td>
                     <td>
                        <%= item.UpdateTime %>
                    </td>
                     <td>
                        <%= item.Views %>
                    </td>
                      <td>
                        <%= item.Username %>
                    </td>
                      <td>
                        <%= item.Image %>
                    </td>
                </tr>
            </tbody>
            <% } %>
        </table>



        <table>
            <thead>
                <tr>
                      <th scope="col">
                        Id
                    </th>
                    <th scope="col" >
                        Title
                    </th>
                    <th scope="col" >
                        Content
                    </th>
                    <th scope="col" >
                        CategoryId
                    </th>
                    <th scope="col" >
                        CreateTime
                    </th>
                     <th scope="col" >
                        UpdateTime
                    </th>
                     <th scope="col" >
                        Views
                    </th>
                     <th scope="col" >
                        Username
                    </th>
                     <th scope="col" >
                        Image
                    </th>

                </tr>
            </thead>
            <% foreach (var item in (ViewData["ListTopAnswer"] as List<Project_1.Models.ViewListModel>))
               { %>
            <tbody>
                <tr>
                    <td>
                        <%=item.Id %>
                    </td>
                     <td>
                        <%=item.Title %>
                    </td>
                    <td>
                        <%=item.Content%>
                    </td>
                    <td>
                        <%= item.CategoryID %>
                    </td>
                    <td>
                        <%= item.CreateTime %>
                    </td>
                     <td>
                        <%= item.UpdateTime %>
                    </td>
                     <td>
                        <%= item.Views %>
                    </td>
                      <td>
                        <%= item.Username %>
                    </td>
                      <td>
                        <%= item.Image %>
                    </td>
                </tr>
            </tbody>
            <% } %>
        </table>
    </div>
</body>
</html>
